package top.infopub.mgr.bpa.service.impl;

import org.springframework.stereotype.Service;
import top.infopub.mgr.bpa.dao.BpaProjectBudgetDetailDao;
import top.infopub.mgr.bpa.service.BpaProjectBudgetDetailService;
import top.infopub.mgr.bpa.vo.BpaProjectBudgetDetail;
import top.infopub.model.bpa.ProjectBudgetDetail;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by wurz on 2021/6/18.
 */
@Service
public class BpaProjectBudgetDetailServiceImpl implements BpaProjectBudgetDetailService {
    @Resource
    private BpaProjectBudgetDetailDao bpaProjectBudgetDetailDao;

    @Override
    public int deleteByBudgetSguid(String budgetSguid) {
        return bpaProjectBudgetDetailDao.deleteByBudgetSguid(budgetSguid);
    }

    @Override
    public int insert(ProjectBudgetDetail projectBudgetDetail) {
        return bpaProjectBudgetDetailDao.insert(projectBudgetDetail);
    }

    @Override
    public int deleteByPrimaryKey(String sguid) {
        return bpaProjectBudgetDetailDao.deleteByPrimaryKey(sguid);
    }

    @Override
    public int updateByPrimaryKey(ProjectBudgetDetail projectBudgetDetail) {
        return bpaProjectBudgetDetailDao.updateByPrimaryKey(projectBudgetDetail);
    }

    @Override
    public ProjectBudgetDetail selectOne(String sguid) {
        return bpaProjectBudgetDetailDao.selectOne(sguid);
    }

    @Override
    public List<BpaProjectBudgetDetail> selectList(BpaProjectBudgetDetail bpaProjectBudgetDetail) {
        return bpaProjectBudgetDetailDao.selectList(bpaProjectBudgetDetail);
    }

    @Override
    public int selectCount(BpaProjectBudgetDetail bpaProjectBudgetDetail) {
        return bpaProjectBudgetDetailDao.selectCount(bpaProjectBudgetDetail);
    }
}
